package com.qf.advice;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * 创建者: QF-SUN
 * 创建时间: 2023/4/18 9:43
 * 描述: 前置 通知(增强), 辅助功能
 */
public class MyBeforeAdvice implements MethodBeforeAdvice {

    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println("开启事务");
    }
}
